import httpInstance from "@/utils/http";
export function getCategoryData(id) {
  return httpInstance({
    url: '/category',
    params: {
      id
    }
  })
}


export const getCategoryFillterAPI = (id) => {
  return httpInstance({
    url: '/category/sub/filter',
    params: {
      id
    }
  })
}

export const getSubCategoryAPI = (data) => {
  return httpInstance({
    url: '/category/goods/temporary',
    method: 'POST',
    data//就是data:data的简写
  })
}

